namespace Declaratie.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class test13 : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId", "dbo.ConsortiumPartners");
            DropIndex("dbo.Medewerkers", new[] { "ConsortiumPartner_ConsortiumPartnerId" });
            AlterColumn("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId", c => c.Int(nullable: false));
            AddForeignKey("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId", "dbo.ConsortiumPartners", "ConsortiumPartnerId", cascadeDelete: true);
            CreateIndex("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.Medewerkers", new[] { "ConsortiumPartner_ConsortiumPartnerId" });
            DropForeignKey("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId", "dbo.ConsortiumPartners");
            AlterColumn("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId", c => c.Int());
            CreateIndex("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId");
            AddForeignKey("dbo.Medewerkers", "ConsortiumPartner_ConsortiumPartnerId", "dbo.ConsortiumPartners", "ConsortiumPartnerId");
        }
    }
}
